#include"Comm.hpp"


int main(){
    int fd = open(FILE_PATH,O_RDONLY);
    char buffer[1024];
    while(true){
        std::cout<<"--> ";
        ssize_t s = read(fd,buffer,sizeof(buffer));
        buffer[s] = 0;
        if(s == 0) break;
        std::cout<<buffer<<std::endl;
    }
    close(fd);
    RemoveNamedPipe(FILE_PATH);
    return 0;
}